package map;

import java.util.Random;
import java.util.TreeMap;

/**
 * treemap的键值会按asc码排序
 */
public class TreeMapTest {

	public static void main(String[] args) {
		
		long start = System.currentTimeMillis();
		
		TreeMap<String, String> map = new TreeMap<String, String>();
	
		Random random = new Random();
		for(int i = 0; i < 100000000; i++){
			
			int rand = Math.abs(random.nextInt(128));
			map.put("" + (char)rand, rand + "");
		}
		
		//FIXME
		//TODO
//		System.out.println(map);
		
		long end = System.currentTimeMillis();
		System.out.println((end - start) / 1000.0);
	}
}
